﻿using System;
using System.Collections.Generic;
using System.ComponentModel.DataAnnotations;
using System.ComponentModel.DataAnnotations.Schema;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace TXTD.Admin.Data.Entitys.System
{
    [Table("SYS_USER_ROLE")]
    public class SysUserRole
    {
        /// <summary>
        /// 主键
        /// </summary>
        [Key]
        [Column("USER_ROLE_ID")]
        [MaxLength(32)]
        public string UserRoleId { get; set; } = Guid.NewGuid().ToString("N");
        /// <summary>
        /// 用户id
        /// </summary>
        [Column("USER_ID")]
        [MaxLength(32)]
        public string UserId { get; set; }
        /// <summary>
        /// 角色id
        /// </summary>
        [Column("ROLE_ID")]
        [MaxLength(32)]
        public string RoleId { get; set; }
    }
}